package com.tuangou.tuangouheader.header.dao;

import com.tuangou.tuangouheader.header.entity.RecordUserEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 
 * 
 * @author zjb
 * @email zjb@tuangou.com
 * @date 2021-06-17 21:27:33
 */
@Mapper
public interface RecordUserDao extends BaseMapper<RecordUserEntity> {

    @Select("select * from tb_record_user where record_id=#{rid} and user_id=#{uid}")
    RecordUserEntity findByRidAndUid(@Param("rid") int rid, @Param("uid") int uid);
}
